package com.baicun.wish.main;

import com.baicun.wish.spiders.ElementUtil;
import com.baicun.wish.utils.driver.WebDriverUtil;
import org.openqa.selenium.By;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;


import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @author baicun
 * @description
 */
public class Test {
    public static void main(String[] args) {
        ChromeDriver chromeDriver = WebDriverUtil.openChrome();
        chromeDriver.get("https://gkcx.eol.cn/school/49");
        //隐式等待
        chromeDriver.manage().timeouts().implicitlyWait(800, TimeUnit.MILLISECONDS);

        String introduceVideo = ElementUtil.isExist(chromeDriver,By.className("job_circle")) ? chromeDriver.findElements(By.className("job_circle")).get(0).getText() : "";


        System.out.println("30:" + introduceVideo);
    }
}
